package com.lanqiao.testwork;

import java.util.Scanner;

public class Test24 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		String str = Integer.toString(num);
		int n = str.length();
		System.out.println("该数是"+n+"位数！");
		for(int i = str.length() - 1;i>=0;i--) {
			System.out.print(str.charAt(i));
		}

	}

}
